package com.ruoyi.ism.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ism.mapper.IsmActivitySignMapper;
import com.ruoyi.ism.domain.IsmActivitySign;
import com.ruoyi.ism.service.IIsmActivitySignService;

/**
 * 签到审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-24
 */
@Service
public class IsmActivitySignServiceImpl implements IIsmActivitySignService 
{
    @Autowired
    private IsmActivitySignMapper ismActivitySignMapper;

    /**
     * 查询签到审核
     * 
     * @param signId 签到审核主键
     * @return 签到审核
     */
    @Override
    public IsmActivitySign selectIsmActivitySignBySignId(Long signId)
    {
        return ismActivitySignMapper.selectIsmActivitySignBySignId(signId);
    }

    /**
     * 查询签到审核列表
     * 
     * @param ismActivitySign 签到审核
     * @return 签到审核
     */
    @Override
    public List<IsmActivitySign> selectIsmActivitySignList(IsmActivitySign ismActivitySign)
    {
        return ismActivitySignMapper.selectIsmActivitySignList(ismActivitySign);
    }

    /**
     * 新增签到审核
     * 
     * @param ismActivitySign 签到审核
     * @return 结果
     */
    @Override
    public int insertIsmActivitySign(IsmActivitySign ismActivitySign)
    {
        ismActivitySign.setCreateTime(DateUtils.getNowDate());
        return ismActivitySignMapper.insertIsmActivitySign(ismActivitySign);
    }

    /**
     * 修改签到审核
     * 
     * @param ismActivitySign 签到审核
     * @return 结果
     */
    @Override
    public int updateIsmActivitySign(IsmActivitySign ismActivitySign)
    {
        ismActivitySign.setUpdateTime(DateUtils.getNowDate());
        return ismActivitySignMapper.updateIsmActivitySign(ismActivitySign);
    }

    /**
     * 批量删除签到审核
     * 
     * @param signIds 需要删除的签到审核主键
     * @return 结果
     */
    @Override
    public int deleteIsmActivitySignBySignIds(Long[] signIds)
    {
        return ismActivitySignMapper.deleteIsmActivitySignBySignIds(signIds);
    }

    /**
     * 删除签到审核信息
     * 
     * @param signId 签到审核主键
     * @return 结果
     */
    @Override
    public int deleteIsmActivitySignBySignId(Long signId)
    {
        return ismActivitySignMapper.deleteIsmActivitySignBySignId(signId);
    }

    @Override
    public IsmActivitySign selectActivitySignByfamilyInfo(IsmActivitySign ismActivitySign) {
        return ismActivitySignMapper.selectActivitySignByfamilyInfo(ismActivitySign);
    }

    @Override
    public int updateActivitySignAudit(IsmActivitySign ismActivitySign) {
        return ismActivitySignMapper.updateActivitySignAudit(ismActivitySign);
    }
}
